﻿using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using Castle.ActiveRecord;

namespace CQIE.OVS.Model
{
    [ActiveRecord("UserInfo")]
    public class User:EntityBase
    {
        [Property]
        [Display(Name = "用户名")]
        [Required(ErrorMessage = "请输入用户名")]
        public string Account { get; set; }


        [Property]
        [Display(Name = "密码")]
        [Required(ErrorMessage = "请输入密码")]
        public string Password { get; set; }

        [Property]
        public int root { get; set; }
        [HasMany(Table = "VoteInfo", ColumnKey = "UserID")]
        public IList<Vote> Votelist { get; set; }
    }
}
